/**
 * Created by beautiful luna on 2016/4/23.
 */
public class SplitDemo2 {

    public static void main(String[] args) {

        for(String str : "Justin dog Monica doggie Irene".split("dog")) {

            System.out.println(str.trim());

        }

    }

}

